/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: Nurhat Uca
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_test_log_headerDetachedCriteria extends
	AbstractORMDetachedCriteria {
    public final IntegerExpression id;
    public final IntegerExpression designTreeId;
    public final IntegerExpression designPartType;
    public final IntegerExpression result;
    public final IntegerExpression parentId;
    public final StringExpression name;
    public final StringExpression dateExecuted;
    public final StringExpression guid;
    public final StringExpression executionGuid;
    public final StringExpression parentGuid;

    public T_test_log_headerDetachedCriteria() {
	super(org.testis.orm.classes.T_test_log_header.class,
		org.testis.orm.classes.T_test_log_headerCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	designTreeId = new IntegerExpression("designTreeId",
		this.getDetachedCriteria());
	designPartType = new IntegerExpression("designPartType",
		this.getDetachedCriteria());
	result = new IntegerExpression("result", this.getDetachedCriteria());
	parentId = new IntegerExpression("parentId", this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
	dateExecuted = new StringExpression("dateExecuted",
		this.getDetachedCriteria());
	guid = new StringExpression("guid", this.getDetachedCriteria());
	executionGuid = new StringExpression("executionGuid",
		this.getDetachedCriteria());
	parentGuid = new StringExpression("parentGuid",
		this.getDetachedCriteria());
    }

    public T_test_log_headerDetachedCriteria(DetachedCriteria aDetachedCriteria) {
	super(aDetachedCriteria,
		org.testis.orm.classes.T_test_log_headerCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
	designTreeId = new IntegerExpression("designTreeId",
		this.getDetachedCriteria());
	designPartType = new IntegerExpression("designPartType",
		this.getDetachedCriteria());
	result = new IntegerExpression("result", this.getDetachedCriteria());
	parentId = new IntegerExpression("parentId", this.getDetachedCriteria());
	name = new StringExpression("name", this.getDetachedCriteria());
	dateExecuted = new StringExpression("dateExecuted",
		this.getDetachedCriteria());
	guid = new StringExpression("guid", this.getDetachedCriteria());
	executionGuid = new StringExpression("executionGuid",
		this.getDetachedCriteria());
	parentGuid = new StringExpression("parentGuid",
		this.getDetachedCriteria());
    }

    public T_test_log_header uniqueT_test_log_header(PersistentSession session) {
	return (T_test_log_header) super.createExecutableCriteria(session)
		.uniqueResult();
    }

    public T_test_log_header[] listT_test_log_header(PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_test_log_header[]) list.toArray(new T_test_log_header[list
		.size()]);
    }
}
